package com.cn.mmd.model;

public class Information {
    private Integer informationid;

    private String informationurl;    //资料url

    private String publisherid;       //发布人id

    private Integer downloads;        //下载次数

    private Integer readnumber;       //阅读次数

    private String releasetime;       //发布时间

    private String classname;         //发布给哪些班级

    private String informationname;   //资料名字

    private String informationcontent;// 资料内容

    private Integer startrow;         //查第几页

    private Integer pageSize;         //分页有多少条数据


    public Information() {
    }

    public Information(Integer startrow,Integer pageSize, String informationname) {
        this.startrow = startrow;
        this.pageSize = pageSize;
        this.informationname = informationname;
    }

    public Information(String informationurl, String publisherid,
                           String releasetime, String classname, String informationname,
                           String informationcontent) {
        this.informationurl = informationurl;
        this.publisherid = publisherid;
        this.releasetime = releasetime;
        this.classname = classname;
        this.informationname = informationname;
        this.informationcontent = informationcontent;
    }

    public Information(String informationurl, String publisherid,
                       String classname, String informationname,
                       String informationcontent) {
        this.informationurl = informationurl;
        this.publisherid = publisherid;
        this.classname = classname;
        this.informationname = informationname;
        this.informationcontent = informationcontent;
    }

    public Information(String informationurl, String publisherid,
                       String releasetime, String classname, String informationname,
                       String informationcontent,Integer informationid) {
        this.informationurl = informationurl;
        this.publisherid = publisherid;
        this.releasetime = releasetime;
        this.classname = classname;
        this.informationname = informationname;
        this.informationcontent = informationcontent;
        this.informationid= informationid;
    }


    public Integer getInformationid() {
        return informationid;
    }

    public void setInformationid(Integer informationid) {
        this.informationid = informationid;
    }

    public String getInformationurl() {
        return informationurl;
    }

    public void setInformationurl(String informationurl) {
        this.informationurl = informationurl == null ? null : informationurl.trim();
    }

    public String getPublisherid() {
        return publisherid;
    }

    public void setPublisherid(String publisherid) {
        this.publisherid = publisherid == null ? null : publisherid.trim();
    }

    public Integer getDownloads() {
        return downloads;
    }

    public void setDownloads(Integer downloads) {
        this.downloads = downloads;
    }

    public Integer getReadnumber() {
        return readnumber;
    }

    public void setReadnumber(Integer readnumber) {
        this.readnumber = readnumber;
    }

    public String getReleasetime() {
        return releasetime;
    }

    public void setReleasetime(String releasetime) {
        this.releasetime = releasetime == null ? null : releasetime.trim();
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname == null ? null : classname.trim();
    }

    public String getInformationname() {
        return informationname;
    }

    public void setInformationname(String informationname) {
        this.informationname = informationname == null ? null : informationname.trim();
    }

    public String getInformationcontent() {
        return informationcontent;
    }

    public void setInformationcontent(String informationcontent) {
        this.informationcontent = informationcontent == null ? null : informationcontent.trim();
    }

    public Integer getStartrow() {
        return startrow;
    }

    public void setStartrow(Integer startrow) {
        this.startrow = startrow;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}